package day04;

public class ForDemo {
    public static void main(String[] args) {
//
//        for (int a = 0;a<10;a++){
//            System.out.println("执行第"+(a+1)+"次");
//        }
//
//        for(int b = 10; b>=1;b--){
//            System.out.println("b="+b);
//        }
        int sum = 0;
        for (int i = 0;i<=100;i++){
            sum = sum+i;
        }
        System.out.println("sum="+sum);
    }
}
